#include "stdafx.h"
#include "InventorySlot.h"
#include "..\..\..\..\EdgeControls\Input.h"
#include "..\..\..\..\EdgeGraphics\HUD.h"

InventorySlot::InventorySlot(void)
{

}

/*virtual*/ InventorySlot::~InventorySlot(void)
{

}

/*virtual*/ void InventorySlot::Update(float dt) /*override*/
{
	if (pickup)
		clientRect.setPosition(Input::GetInstance()->getMousePosition());
	
	UiElement::Update(dt);
}

/*virtual*/ void InventorySlot::Draw(void) /*override*/
{
	Hud::GetInstance()->DrawRectangle((int)clientRect.left, (int)clientRect.top, (int)clientRect.getWidth(), (int)clientRect.getHeight(), VectorHelper::vector_4::brown);
	UiElement::Draw();
}